import MenuView from '@/views/common/MenuView'
// import PageView from '@/views/common/PageView'
import LoginView from '@/views/login/Common'
import EmptyPageView from '@/views/common/EmptyPageView'
import HomePageView from '@/views/overseas/teacher/teacherView'
let overseasRouter = [
  {
    path: '/',
    hidden: true,
    redirect: '/overseas/teacherView'
  },
  {
    path: '/login',
    name: '登录页',
    hidden: true,
    component: LoginView
  },
  {
    path: '/',
    name: '静态路由',
    component: MenuView,
    hidden: true,
    children: [
      {
        name: '学籍异动查看页',
        path: '/student/change/view',
        component: () => import('@/views/stuStatus/changeView')
      },
      {
        name: '专业实践申请审核',
        path: '/degree/professionalPractice/detail',
        component: () => import('@/views/degree/professionalPractice/detail')
      },
      {
        name: '实践结果评价审核',
        path: '/degree/practiceResult/detail',
        component: () => import('@/views/degree/practiceResult/detail')
      },
      {
        name: '调课申请',
        path: '/training/courses/schedule/transfer',
        component: () => import('@/views/cultivate/courses/tk')
      },
      {
        name: '调课详情',
        path: '/training/courses/schedule/transfer/detail',
        component: () => import('@/views/cultivate/courses/transferDetail')
      },
      {
        name: '学生详情',
        hidden: true,
        path: '/stuStatus/stuView',
        component: () => import('@/views/stuStatus/search/stuView'),
      },
      {
        name: '海外学生详情',
        hidden: true,
        path: '/overseas/stuStatus/stuView',
        component: () => import('@/views/overseas/student/stuView'),
      }
    ]
  },
  {
    path: '/overseas',
    name: '个人信息管理',
    component: MenuView,
    redirect: '/overseas/infoEdit',
    icon: 'search',
    children: [
      {
        name: '个人信息查看',
        path: '/overseas/teacherView',
        component: () => import('@/views/overseas/teacher/teacherView')
      },
      {
        name: '个人信息补充',
        path: '/overseas/infoEdit',
        component: () => import('@/views/overseas/teacher/infoEdit')
      },
    ]
  },
  {
    path: '/project',
    name: '项目信息管理',
    component: MenuView,
    redirect: '/overseas/project',
    icon: 'search',
    children: [
      { 
        name: '项目信息查看',
        path: '/overseas/project', 
        component: () => import('@/views/overseas/project/project')
      },
    ]
  },
  // 查询统计
  {
    path: '/search',
    name: '学生信息管理',
    component: MenuView,
    redirect: '/stuStatus/stuList',
    icon: 'search',
    children: [
      {
        name: 'stuList',
        path: '/stuStatus/stuList',
        component: () => import('@/views/overseas/student/stuList')
      },

    ]
  },
  // 培养管理
  {
    path: '/training',
    name: 'training',
    redirect: '/training/teacherInfo/modify',
    component: MenuView,
    icon: 'radius-upleft',
    children: [
      // 中期考核
      {
        path: '/midExam',
        name: 'midTermExam',
        redirect: '/overseas/midExam',
        component: EmptyPageView,
        icon: 'align-left',
        children: [
          // {
          //   name: 'midTermExamTutorQuery',
          //   path: '/training/midExam/tutorQuery',
          //   component: () => import('@/views/cultivate/midExam/tutorQuery')
          // },
          {
            name: 'midTermExamTutorReview',
            path: '/overseas/midExam/review',
            component: () => import('@/views/overseas/midExam/review/review')
          },
          {
            name: 'midTermExamInfoQuery',
            path: '/overseas/midExam/query',
            component: () => import('@/views/overseas/midExam/query/query')
          },
          // {
          //   name: 'midTermExamStatistics',
          //   path: '/training/midExam/statistics',
          //   component: () => import('@/views/cultivate/midExam/statistics/statistics')
          // }
        ],
      },
      // 论文管理
      {
        path: '/paper',
        name: '毕业论文管理',
        redirect: '/overseas/paper',
        component: EmptyPageView,
        icon: 'bold',
        children: [
          {
            name: '毕业论文审核',
            path: '/overseas/paper/review',
            component: () => import('@/views/overseas/paper/check/review')
          },
          {
            name: '毕业论文查询',
            path: '/overseas/paper/query',
            component: () => import('@/views/overseas/paper/query/query')
          },
        ]
      },
    ]
  },
  {
    path: '/degree',
    name: 'degreeMg',
    hidden:true,
    component: MenuView,
    redirect: '/degree/paperAudit',
    icon: 'experiment',
    children: [
      {
        name: 'degreePaper',
        path: '/degree/paperAudit',
        component: () => import('@/views/degree/paper/audit')
      },
    ]
  },
  // 学生工作管理
  {
    path: '/management',
    name: 'management',
    component: MenuView,
    redirect: '/overseas/dormitory/reviewOutstay',
    icon: 'contacts',
    children: [
      {
        name: 'dormitory',
        path: '/overseas/dormitory',
        icon: 'snippets',
        component: EmptyPageView,
        children: [
          {
            name: 'reviewOutstayInfo',
            path: '/overseas/dormitory/reviewOutstay',
            component: () => import('@/views/overseas/dormitory/review/reviewOutstay')
          },
          {
            name: 'checkoutstayInfo',
            path: '/overseas/dormitory/checkOutstay',
            component: () => import('@/views/overseas/dormitory/query/checkOutstay')
          }
        ]
      },
    ]
  }
]

export default overseasRouter
